package com.cloud.shopping.seckill.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cloud.shopping.seckill.mapper.SeckillActivityMapper;
import com.cloud.shopping.seckill.mapper.SeckillOrderMapper;
import com.cloud.shopping.seckill.model.SeckillActivity;
import com.cloud.shopping.seckill.model.SeckillOrder;
import com.cloud.shopping.seckill.service.SeckillActivityService;
import com.cloud.shopping.seckill.service.SeckillOrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author John.zhang
 * @version Id: SeckillOrderServiceImpl, v 1.0 2021/1/8 11:05 ZhiYong Exp $
 */
@Service
public class SeckillActivityServiceImpl extends ServiceImpl<SeckillActivityMapper, SeckillActivity> implements SeckillActivityService {

    @Resource
    private SeckillActivityMapper seckillActivityMapper;

    @Override
    public List<SeckillActivity> validActivity() {
        return seckillActivityMapper.validActivity();
    }
}
